package com.kingmed.kmss.common.exception.bpmn;


import com.kingmed.kmss.common.enums.base.code.IResultCode;

/**
 * 流程审批异常-找不到审批人
 */
public class ProcessNoAuditUserException extends RuntimeException {
    /**
	 *
	 */
    private static final long serialVersionUID = 1L;
	private IResultCode resultCode;


    public ProcessNoAuditUserException(IResultCode resultCode) {
        super(resultCode.getMessage());
        this.resultCode = resultCode;
    }

    public ProcessNoAuditUserException(String message) {
        super(message);
    }

    public ProcessNoAuditUserException(String format, Object... args) {
        super(String.format(format, args));
    }

    public ProcessNoAuditUserException(Throwable cause) {
        super(cause);
    }

    public ProcessNoAuditUserException(String message, Throwable cause) {
        super(message, cause);
    }

    public IResultCode getErrorCode() {
        return resultCode;
    }
}
